package fr.perso.ppo.springintegration;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import fr.perso.ppo.springintegration.domain.PaiementGDPA;

public class PaiementRowMapper implements RowMapper<PaiementGDPA> {

	public PaiementGDPA mapRow(ResultSet rs, int rowNum) throws SQLException {
		PaiementGDPA paiement = new PaiementGDPA();
		paiement.setCDENC(String.valueOf(rs.getLong("CDENC")));
		paiement.setCDSEQ(String.valueOf(rs.getLong("CDSEQ")));
		paiement.setCDORIGINE(String.valueOf(rs.getLong("CDORIGINE")));
		paiement.setCDSOCIETE(String.valueOf(rs.getLong("CDSOCIETE")));
		paiement.setCDAPPLI(String.valueOf(rs.getLong("CDAPPLI")));
		paiement.setNUPRODUIT(rs.getString("NUPRODUIT"));
		paiement.setCDTYPENC(rs.getString("CDTYPENC"));
		paiement.setCDMONNAIE(String.valueOf(rs.getLong("CDMONNAIE")));
		paiement.setCDSITUATION(String.valueOf(rs.getLong("CDSITUATION")));
		paiement.setDTCREATION(String.valueOf(rs.getLong("DTCREATION")));
		paiement.setDTEFFET(String.valueOf(rs.getLong("DTEFFET")));
		paiement.setMONTANT(String.valueOf(rs.getLong("MONTANT")));
		paiement.setRWNUMREG(String.valueOf(rs.getLong("RWNUMREG")));
		paiement.setRWBANCA(rs.getString("RWBANCA"));
		paiement.setRWSUPPORT(rs.getString("RWSUPPORT"));
		paiement.setNUCPTGENE(rs.getString("NUCPTGENE"));
		paiement.setRWDESC(rs.getString("RWDESC"));
		paiement.setCDBORDEREAU(String.valueOf(rs.getLong("CDBORDEREAU")));
		paiement.setNUORDRE(String.valueOf(rs.getLong("NUORDRE")));
		paiement.setCDCOMPTE(String.valueOf(rs.getLong("CDCOMPTE")));
		paiement.setNUCHEQUE(String.valueOf(rs.getLong("NUCHEQUE")));
		paiement.setNUCONTRA(rs.getString("NUCONTRA"));
		paiement.setNUGESTION(rs.getString("NUGESTION"));
		paiement.setLBREF01(rs.getString("LBREF01"));
		paiement.setLBREF02(rs.getString("LBREF02"));
		paiement.setIDOPERATEUR(rs.getString("IDOPERATEUR"));
		paiement.setIDAFFECT(rs.getString("IDAFFECT"));
		paiement.setDTAFFECT(String.valueOf(rs.getLong("DTAFFECT")));
		paiement.setHHAFFECT(String.valueOf(rs.getLong("HHAFFECT")));
		paiement.setIDVALIDATION(rs.getString("IDVALIDATION"));
		paiement.setDTVALIDATION(String.valueOf(rs.getLong("DTVALIDATION")));
		paiement.setHHVALIDATION(String.valueOf(rs.getLong("HHVALIDATION")));
		paiement.setDTEXTRV(String.valueOf(rs.getLong("DTEXTRV")));
		paiement.setHHEXTRV(String.valueOf(rs.getLong("HHEXTRV")));
		paiement.setID(rs.getLong("ID"));
		paiement.setSTATUT(String.valueOf(rs.getLong("STATUT")));

		return paiement;
	}

}
